package com.bytedance.article.common.a.a;

import android.os.Looper;
import android.util.Printer;

public class a {
    private static volatile a a;
    private static volatile boolean b;
    private static final Printer c;

    static {
        c = new b();
    }

    private a() {

    }

    public static a a() {
        if (a == null) {
            Class v1 = a.class;
            synchronized (v1) {
                if (a == null) {
                    a = new a();
                }
            }
        }

        return a;
    }

    public static void b() {
        if (!b && (android.support.design.a.m("caton_monitor"))) {
            b = true;
            Looper.getMainLooper().setMessageLogging(c);
        }
    }
}

